<template>
  <div class="userinfo">
    <el-descriptions title="个人信息" :column="column">
      <el-descriptions-item contentStyle="font-weight:550" label="OA账号">{{
        userinfo.userName
      }}</el-descriptions-item>
      <el-descriptions-item label="OA密码">{{
        userinfo.passWord
      }}</el-descriptions-item>
      <el-descriptions-item label="昵称">{{
        userinfo.nikName
      }}</el-descriptions-item>
      <el-descriptions-item label="性别">{{
        userinfo.sex
      }}</el-descriptions-item>
      <el-descriptions-item label="手机号">{{
        userinfo.phone
      }}</el-descriptions-item>
      <el-descriptions-item label="职位">{{
        userinfo.post
      }}</el-descriptions-item>
      <el-descriptions-item contentStyle="color:red" label="目前薪资">{{
        userinfo.money
      }}</el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script>
export default {
  data() {
    return {
      userinfo: {}, //用户信息
      column: 1,
    };
  },

  methods: {},

  created() {
    //获取本地用户信息
    this.userinfo = JSON.parse(window.localStorage.getItem("userinfo")).user;
  },
};
</script>

<style lang="scss" scoped>
</style>